//
//  HomeBannerModel.m
//  
//
//  Created by 王长飞 on 2018/10/20.
//  Copyright © 2018年 王长飞. All rights reserved.
//

#import "InsuranceModel.h"

@implementation InsuranceModel

- (instancetype)initWithDelegate:(id<BaseModelProtocol>)Delegate cache:(BOOL)cache
{
    if (self = [super initWithDelegate:Delegate cache:cache]) {
        self.parseModelClass = [InsuranceResponse class];
    }
    return self ;
}
- (void)getDataList:(NSString *)companyId firstCategoryId:(NSString *)firstCategoryId secondCategoryId:(NSString *)secondCategoryId thirdCategoryIdList:(NSArray *)thirdCategoryIdList title:(NSString *)title pageNum:(int)pageNum
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:4];
    EFAppContext *appc = [EFAppContext sharedContext];
    [parameters setValue:companyId forKey:@"insuranceCangbaotuCompanyId"];
    [parameters setValue:firstCategoryId forKey:@"firstCategoryId"];
    [parameters setValue:secondCategoryId forKey:@"secondCategoryId"];
    [parameters setValue:thirdCategoryIdList forKey:@"searchThirdCategoryIdList"];
    [parameters setValue:title forKey:@"title"];
    [parameters setValue:[NSString stringWithFormat:@"%d",pageNum] forKey:@"pageNum"];
    [parameters setValue:@"10" forKey:@"pageSize"];
    [parameters setValue:EUInitId forKey:@"storeUnitId"];

    [self postPath:@"/xqn/app/insuranceCangbaotuProduct/listPage" parameters:parameters];
}

@end
